package com.saicmotor.hk2.mapper;

import com.saicmotor.hk2.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataRetrievalFailureException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int getAgeByName(String name);

    List<String>getNameByAge(int age);

    List<User> getAll();

    void insertUserInfo(String name,int age);

    void deleteByName(String name);

    void updateAgeByName(String name,int age);

    void createUserTable(@Param(value = "tableName")String tableName);

}
